package com.fd.dx.web.controllers;

import com.fd.dx.domain.ST;
import com.fd.dx.service.STService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by lenovo on 2018/2/28.
 */
@Controller
@RequestMapping("/st")
public class STController {
    @Autowired
    private STService stService;
    @RequestMapping("/get")
    @ResponseBody
    public ST getST(Integer id) {
        return stService.getSTInfo(id);
    }
    @RequestMapping("/update")
    @ResponseBody
    public Integer updateST(ST st) {
        return stService.updateSTInfo(st);
    }
}
